<?php


namespace App\Component;


interface UidBandServerInterface
{

    /**
     * set cache
     * @param $key
     * @param $value
     * @return mixed
     */
    public function set($key, $value);

    /**
     * get cache
     * @param $key
     * @return mixed
     */
    public function get($key);

    /**
     * delete cache
     * @param $key
     * @return mixed
     */
    public function del($key);

    /**
     * Whether the cache exists
     * @param $key
     * @return mixed
     */
    public function exist($key);

    /**
     * clear cache
     * @return mixed
     */
    public function clear();

}